<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>志愿模拟表</title>
  <script src="http://code.jquery.com/jquery-2.2.4.min.js"></script>
  <link rel="stylesheet" href="index.css">
  <link rel="stylesheet" href="main.css">
  <link rel="stylesheet" href="volunteer.css">
  <link rel="stylesheet" href="simulation.css">
  <link rel="stylesheet" href="./static/dist/css/bootstrap.css">
  <script type="text/javascript" src="./static/store.legacy.min.js"></script>
  <script src="./static/util.js"></script>
</head>
<body>
  <!-- 自主招生页面 -->
  <header>
    <div class="headerSwipper">
      <div class="headerSwipper_div">
        <div class="headerSwipper_div_iconview">
          <img src="./static/images/logo.png" alt="">
        </div>
        <div class="headerSwipper_div_myicon">
          <!-- <img src="" alt=""> -->
          <span class="loginText">登录</span>
          <div class="headerSwipper_div_myicon_icon" style="display: none">
            <img src="./static/images/iconsmall.png" alt="">
          </div>
          <div class="headerSwipper_div_myicon_info">
            <ul>
              <li class="headerSwipper_div_myicon_info_li">消息</li>
              <li class="headerSwipper_div_myicon_info_li">退出</li>
            </ul>
          </div>
        </div>
        <ul class="headerSwipper_div_ul">
          <li class="headerSwipper_div_li mobileapp">手机APP</li>
          <li class="headerSwipper_div_li vipprop">开通VIP</li>
        </ul>
      </div>
    </div>
  </header>
  <section>
    <div class="ImgSwipperview">
      <img class="ImgSwipperview_img" src="./static/images/mainSwipper.png" alt="">
    </div>
  </section>
  <section>
    <div class="mainContentView">
      <div class="contentView">
        <!-- 上侧导航 -->
        <div class="topnav">
          <ul class="contentView_ul">
            <li class="contentView_li">首页</li>
            <li class="contentView_li">学习中心</li>
            <li class="contentView_li contentView_li_active">志愿填报</li>
            <li class="contentView_li">微课</li>
            <li class="contentView_li">模拟试题</li>
            <li class="contentView_li">往届真题</li>
            <li class="contentView_li">咨询</li>
          </ul>
          <div class="inputview">
            <input class="inputview_input" id="tag" 
 type="text" placeholder="搜索院校">
            <img  class="searchicon_img" src="./static/images/searchicon.png" alt="">
          </div>
        </div>
      </div>
    </div>
  </section>
  <!-- 志愿模拟表 总表 -->
  <section class="general">
    <div class="simulation">
    <form action="" id="form_data">
      <div class="simview">
        <p class="simview_title">河南省2019年普通类本科第一批学校志愿智能模拟</p>
        <p class="simview_vicetitle">
          您的高考预估成绩
          <span class="margin_span">
            科类:
            <span class="spc_span spc_sub"></span>
          </span>
          <span>
            总分:
            <span class="spc_span spc_score"></span>
          </span>
        </p>
        <table class="table table-bordered myzhiyuan">
          <tr>
            <td style="width:120px;"> </td>
            <td style="width:540px;">院校</td>
            <td>专业</td>
          </tr>
          <tr id="zy_A">
            <th class="ltrtext">
              <span class="span_ltr">
                A志愿
              </span>
            </th>
            <th>
              <p class="scholls_choice schoolname">
                <input type="text" placeholder="请选择学校" name="zy_1">
                <span class="choice_btn school_choice">选择</span>
              </p>

            </th>
            <th>
              <ul class="sub_choice">
                <li>
                  <p class="scholls_choice">
                    <b>1、</b>
                    <input type="text" placeholder="请选择学校" name="sub_A[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>2、</b>
                    <input type="text" placeholder="请选择学校" name="sub_A[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>3、</b>
                    <input type="text" placeholder="请选择学校" name="sub_A[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>4、</b>
                    <input type="text" placeholder="请选择学校" name="sub_A[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>5、</b>
                    <input type="text" placeholder="请选择学校" name="sub_A[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
              </ul>
            </th>
          </tr>
          <tr id="zy_B">
            <th class="ltrtext">
              <span class="span_ltr">
                B志愿
              </span>
            </th>
            <th>
              <p class="scholls_choice schoolname">
                <input type="text" placeholder="请选择学校" name="zy_2">
                <span class="choice_btn school_choice">选择</span>
              </p>

            </th>
            <th>
              <ul class="sub_choice">
                <li>
                  <p class="scholls_choice">
                    <b>1、</b>
                    <input type="text" placeholder="请选择学校" name="sub_B[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>2、</b>
                    <input type="text" placeholder="请选择学校" name="sub_B[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>3、</b>
                    <input type="text" placeholder="请选择学校" name="sub_B[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>4、</b>
                    <input type="text" placeholder="请选择学校" name="sub_B[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>5、</b>
                    <input type="text" placeholder="请选择学校" name="sub_B[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
              </ul>
            </th>
          </tr>
          <tr id="zy_C">
            <th class="ltrtext">
              <span class="span_ltr">
                C志愿
              </span>
            </th>
            <th>
              <p class="scholls_choice schoolname">
                <input type="text" placeholder="请选择学校" name="zy_3">
                <span class="choice_btn school_choice">选择</span>
              </p>

            </th>
            <th>
              <ul class="sub_choice">
                <li>
                  <p class="scholls_choice">
                    <b>1、</b>
                    <input type="text" placeholder="请选择学校" name="sub_C[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>2、</b>
                    <input type="text" placeholder="请选择学校" name="sub_C[]" >
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>3、</b>
                    <input type="text" placeholder="请选择学校" name="sub_C[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>4、</b>
                    <input type="text" placeholder="请选择学校" name="sub_C[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>5、</b>
                    <input type="text" placeholder="请选择学校" name="sub_C[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
              </ul>
            </th>
          </tr>
          <tr id="zy_D">
            <th class="ltrtext">
              <span class="span_ltr">
                D志愿
              </span>
            </th>
            <th>
              <p class="scholls_choice schoolname">
                <input type="text" placeholder="请选择学校" name="zy_4">
                <span class="choice_btn school_choice">选择</span>
              </p>

            </th>
            <th>
              <ul class="sub_choice">
                <li>
                  <p class="scholls_choice">
                    <b>1、</b>
                    <input type="text" placeholder="请选择学校" name="sub_D[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>2、</b>
                    <input type="text" placeholder="请选择学校" name="sub_D[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>3、</b>
                    <input type="text" placeholder="请选择学校" name="sub_D[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>4、</b>
                    <input type="text" placeholder="请选择学校" name="sub_D[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>5、</b>
                    <input type="text" placeholder="请选择学校" name="sub_D[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
              </ul>
            </th>
          </tr>
          <tr id="zy_E">
            <th class="ltrtext">
              <span class="span_ltr">
                E志愿
              </span>
            </th>
            <th>
              <p class="scholls_choice schoolname">
                <input type="text" placeholder="请选择学校" name="zy_5">
                <span class="choice_btn school_choice">选择</span>
              </p>

            </th>
            <th>
              <ul class="sub_choice">
                <li>
                  <p class="scholls_choice">
                    <b>1、</b>
                    <input type="text" placeholder="请选择学校" name="sub_E[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>2、</b>
                    <input type="text" placeholder="请选择学校" name="sub_E[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>3、</b>
                    <input type="text" placeholder="请选择学校" name="sub_E[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>4、</b>
                    <input type="text" placeholder="请选择学校" name="sub_E[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>5、</b>
                    <input type="text" placeholder="请选择学校" name="sub_E[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
              </ul>
            </th>
          </tr>
          <tr id="zy_F">
            <th class="ltrtext">
              <span class="span_ltr">
                F志愿
              </span>
            </th>
            <th>
              <p class="scholls_choice schoolname">
                <input type="text" placeholder="请选择学校" name="zy_6">
                <span class="choice_btn school_choice">选择</span>
              </p>

            </th>
            <th>
              <ul class="sub_choice">
                <li>
                  <p class="scholls_choice">
                    <b>1、</b>
                    <input type="text" placeholder="请选择学校" name="sub_F[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>2、</b>
                    <input type="text" placeholder="请选择学校" name="sub_F[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>3、</b>
                    <input type="text" placeholder="请选择学校" name="sub_F[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>4、</b>
                    <input type="text" placeholder="请选择学校" name="sub_F[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>5、</b>
                    <input type="text" placeholder="请选择学校" name="sub_F[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
              </ul>
            </th>
          </tr>
          <tr id="zy_G" class="issecond">
            <th class="ltrtext">
              <span class="span_ltr">
                G志愿
              </span>
            </th>
            <th>
              <p class="scholls_choice schoolname">
                <input type="text" placeholder="请选择院校" name="zy_7">
                <span class="choice_btn school_choice">选择</span>
              </p>

            </th>
            <th>
              <ul class="sub_listul">
                <li>
                  <p class="scholls_choice">
                    <b>1、</b>
                    <input type="text" placeholder="请选择专业" name="sub_G[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>2、</b>
                    <input type="text" placeholder="请选择专业" name="sub_G[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>3、</b>
                    <input type="text" placeholder="请选择专业" name="sub_G[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>4、</b>
                    <input type="text" placeholder="请选择专业" name="sub_G[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>5、</b>
                    <input type="text" placeholder="请选择专业" name="sub_G[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
              </ul>
            </th>
          </tr>
          <tr id="zy_H" class="issecond">
            <th class="ltrtext">
              <span class="span_ltr">
                H志愿
              </span>
            </th>
            <th>
              <p class="scholls_choice schoolname">
                <input type="text" placeholder="请选择院校" name="zy_8">
                <span class="choice_btn school_choice">选择</span>
              </p>

            </th>
            <th>
              <ul class="sub_listul">
                <li>
                  <p class="scholls_choice">
                    <b>1、</b>
                    <input type="text" placeholder="请选择专业" name="sub_H[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>2、</b>
                    <input type="text" placeholder="请选择专业" name="sub_H[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>3、</b>
                    <input type="text" placeholder="请选择专业" name="sub_H[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>4、</b>
                    <input type="text" placeholder="请选择专业" name="sub_H[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>5、</b>
                    <input type="text" placeholder="请选择专业" name="sub_H[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
              </ul>
            </th>
          </tr>
          <tr id="zy_I" class="issecond">
            <th class="ltrtext">
              <span class="span_ltr">
                I志愿
              </span>
            </th>
            <th>
              <p class="scholls_choice schoolname">
                <input type="text" placeholder="请选择院校" name="zy_9">
                <span class="choice_btn school_choice">选择</span>
              </p>

            </th>
            <th>
              <ul class="sub_listul">
                <li>
                  <p class="scholls_choice">
                    <b>1、</b>
                    <input type="text" placeholder="请选择专业" name="sub_I[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>2、</b>
                    <input type="text" placeholder="请选择专业" name="sub_I[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>3、</b>
                    <input type="text" placeholder="请选择专业" name="sub_I[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>4、</b>
                    <input type="text" placeholder="请选择专业" name="sub_I[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
                <li>
                  <p class="scholls_choice">
                    <b>5、</b>
                    <input type="text" placeholder="请选择专业" name="sub_I[]">
                    <span class="choice_btn sub_choice">选择</span>
                    <span class="choice_btn sub_delete">删除</span>
                  </p>
                </li>
              </ul>
            </th>
          </tr>
        </table>
        <!-- <button type="submit" class="save_btn">保存</button> -->
        <p class="functionview">
          <span class="change_btn">修改志愿表</span>
          <span class="delete_btn">删除志愿表</span>
        </p>
      </div>
    </form>

    </div>
  </section>

  <footer>
    <div class="footerSwipper">
      <div class="footerSwipper_div">
        <ul class="footerSwipper_div_ul">
          <span class="footerSwipper_div_ul_span"><a href="./index.html">首页</a></span>
          <li class="footerSwipper_div_ul_li"><a href="./schools.html?keyword=">院校大全</a></li>
          <li class="footerSwipper_div_ul_li"><a href="./major.html">专业大全</a></li>
          <li class="footerSwipper_div_ul_li"><a href="./mentality.html">心理辅导</a></li>
          <li class="footerSwipper_div_ul_li"><a href="./careerPlanning.html">职业规划</a></li>
          <li class="footerSwipper_div_ul_li"><a href="./infoTest.html">高考资讯</a></li>
          <li class="footerSwipper_div_ul_li"><a href="./recruitment.html?type=1">自主招生</a></li>
          <li class="footerSwipper_div_ul_li"><a href="./recruitment.html?type=2">单独招生</a></li>
        </ul>
        <ul class="footerSwipper_div_ul">
          <span class="footerSwipper_div_ul_span">学习提升</span>
          <li class="footerSwipper_div_ul_li"><a href="./index.html?index=3">微课</a></li>
          <li class="footerSwipper_div_ul_li"><a href="./index.html?index=4">模拟试题</a></li>
          <li class="footerSwipper_div_ul_li"><a href="./index.html?index=5">往届试题</a></li>
        </ul>
        <ul class="footerSwipper_div_ul">
          <span class="footerSwipper_div_ul_span">志愿填报</span>
          <li class="footerSwipper_div_ul_li"><a href="./index.html?index=6">咨询</a></li>
          <li class="footerSwipper_div_ul_li"><a href="./mobileapp.html">下载APP</a></li>
        </ul>
        <!-- 扫一扫关注我们区域 -->
        <div class="QRcodeSwipper">
          <span class="QRcodeSwipper_span">扫一扫关注我们</span>
          <div class="QRcodeSwipper_imgview">
            <img src="./static/images/qr.png" alt="">
          </div>
        </div>
        <!-- 中间信息区域 -->
        <div class="middleInfo">
          <span class="middleInfo_span_city">中国·河南·郑州</span>
          <span class="middleInfo_span_GE"><span class="middleInfo_span_GE_icon middleInfo_span_GE_icon_special phone_icon"><img src="./static/images/phone.png" alt=""></span><span class="middleInfo_span_GE_text middleInfo_span_GE_text_color">0371-68064945</span></span>
          <span class="middleInfo_span_GE"><span class="middleInfo_span_GE_icon message_icon"><img src="./static/images/message.png" alt=""></span><span class="middleInfo_span_GE_text">595879735@qq.com</span></span>
          <span class="middleInfo_span_GE"><span class="middleInfo_span_GE_icon message_icon"><img src="./static/images/store.png" alt=""></span><span class="middleInfo_span_GE_text">河南柒佰伴教育信息咨询有限公司
          </span></span>
          <span class="middleInfo_span_GE"><span class="middleInfo_span_GE_icon middleInfo_span_GE_icon_special address_icon"><img src="./static/images/address.png" alt=""></span><span class="middleInfo_span_GE_text middleInfo_span_GE_text_special">郑州市郑东新区立体世界
            </span></span>
        </div>
        <p class="footerSwipper_div_p">河南世霖网络软件科技 2014-2018 豫ICP备14010456号-1</p>
      </div>
    </div>
  </footer>
  <script src="./static/util.js"></script>
  <script>
    $(document).ready(function(){
      // 初始化参数
      var score
      var sub_type
      // 本科类型 固定
      var ed = getparse(location.href,1)
      // 二本初始化
      if(ed == 2) {
        $('.issecond').css({
          'display': ''
        })
      }else {
        $('.issecond').css({
          'display': 'none'
        })
      }
      // console.log('ed'+ed)
      var ajaxdata
      var zid = getparse(location.href, 0)
      var sub_list = ['','理科','文科']
      // console.log(score, sub_type, ed)
      // 登录隐藏
      $('.headerSwipper_div_myicon_info').hide()
      // 页面首页初始化
      ArrowNavigation($('.simview'), ['zhiyuan','simulation'])
      function pageinit () {
        // $('.spc_sub').text(sub_list[sub_type])
        // $('.spc_score').text(score)
        initvalue()
      }
      pageinit()
      // li标签点击 需要跳转页面 同时传递第几个 进行初始化
      $('body').on('click', '.contentView_li', function () {
        var index = $(this).index()
        window.location.href = './index.html?index=' + index
      })
      // 学校选择跳转
      $('.myzhiyuan').on('click', '.school_choice', function (){
        var nameIndex = $(this).parent().find('input[type="text"]').attr('name').slice(3)
        alert('1')
        location.href = './select_school.html?type=' + nameIndex + '&score=' + score + '&sub_type=' + sub_type + '&ed=' + ed
      })
      // 专业选择跳转
      $('.myzhiyuan').on('click', '.sub_choice', function (){
        // var nameIndex = $(this).parent().find('input[type="text"]').attr('name').slice(3)
        var school_id = $(this).parents('tr').find('th').eq(1).find('input[type="text"]').attr('school_id')
        location.href = './select_major.html?school_id=' + school_id + '&score=' + score + '&sub_type=' + sub_type + '&ed=' + ed
      })
      function initvalue() {
        
        // var ed_list = ['',['','list_school','list_school2','list_school3'],['','list_school4','list_school5','list_school6']]
        // datainit = store.get(ed_list[sub_type][ed])
        $.ajax({
          url: urlhost + '/admin.php/api/goods/my_zyd_detail',
          method: 'POST',
          data: {
            zid: zid,
            uid: store.get('uid')
          },
          success: function (res) {
            if(res.code == '0') {
              var datainit = res.data
              // 科目 分数 标题
              ajaxdata = res.data
              $('.spc_sub').text(sub_list[datainit.sch_data.obj_status])
              $('.spc_score').text(datainit.sch_data.total_score)
              $('.simview_title').text(datainit.sch_data.name)
              score = datainit.sch_data.total_score
              sub_type = datainit.sch_data.obj_status
              var subtype_list = ['sub_A[]','sub_B[]','sub_C[]','sub_D[]','sub_E[]','sub_F[]']
              if(datainit.zy_data.length > 0) {
                for(var i=0; i < datainit.zy_data.length; i++) {
                  $('.schoolname').eq(i).find('input[type="text"]').val(datainit.zy_data[i].school_name)
                  $('.schoolname').eq(i).find('input[type="text"]').attr('school_id', datainit.zy_data[i].school_id)
                  $('.schoolname').eq(i).parents('th').append('<p>'+ datainit.zy_data[i].year +'年投档分:<span>'+ datainit.zy_data[i].tdf_score +'</span></p>')
                  $('.schoolname').eq(i).parents('th').append('<p>'+ datainit.zy_data[i].year +'年投档排名:<span>'+ datainit.zy_data[i].tdf_rank +'</span></p>')
                  $('.schoolname').eq(i).parents('th').append('<p>投档概率:<span>'+ datainit.zy_data[i].tdf_gailv +'</span></p>')
                  if(!datainit.zy_data[i].zy) {
                    
                  }else {
                    if(datainit.zy_data[i].zy.length > 0) {
                      for(var j=0; j < datainit.zy_data[i].zy.length; j++) {
                        $("input[name=" + '"' + String(subtype_list[i]) + '"' + "]").eq(j).val(datainit.zy_data[i].zy[j].zy_name)
                        $("input[name=" + '"' + String(subtype_list[i]) + '"' + "]").eq(j).parents('li').attr('zy-id', datainit.zy_data[i].zy[j].zy_id)
                      }
                    }
                  }
                }
              }
              $('input[type="text"]').attr('placeholder', '')
              $('input[type="text"]').attr('disabled', true)
              $('input[type="text"]').css({
                'background-color': '#fff',
                'border': 'none'
              })
              $('.choice_btn').hide()
            }

          }
        })
        // if(!datainit) {
        //   return
        // }else {
        //   datainit = JSON.parse(datainit)
        //   if(datainit.schools.length >= 2) {
        //     for(var i=1; i < datainit.schools.length+1; i++) {
        //       if(datainit.schools[i]) {
        //         $('.schoolname').eq(i-1).find('input[type="text"]').val(datainit.schools[i][2])
        //         $('.schoolname').eq(i-1).find('.choice_btn').text('重新选择')
        //         $('.schoolname').eq(i-1).find('input[type="text"]').attr('school_id', datainit.schools[i][1])
        //       }
        //     }
        //     $('input[type="text"]').attr('placeholder', '')
        //     $('input[type="text"]').attr('disabled', true)
        //     $('input[type="text"]').css({
        //       'background-color': '#fff',
        //       'border': 'none'
        //     })
        //     $('.choice_btn').hide()
        //   }
        // }
      }
      // 修改志愿表点击事件
      $('body').on('click', '.change_btn', function () {
        // $('input[type="text"]').attr('placeholder', '请选择')
        //     $('input[type="text"]').attr('disabled', false)
        //     $('input[type="text"]').css({
        //       'background-color': '#fff',
        //       'border': '1px solid #f5f5f5'
        //     })
        // $('.choice_btn').show()
        store.set('list_school', ajaxdata)
        store.set('change_id', zid)
        location.href = './simulation.html?score=' + score + '&sub_type=' + sub_type + '&ed=' + ed + '&changeid=' + zid
      })
      // 删除志愿表点击事件
      $('body').on('click', '.delete_btn', function () {
        $.ajax({
          url: urlhost + '/admin.php/api/goods/del_tbzy',
          method: 'POST',
          data: {
            uid: store.get('uid'),
            zid: zid
          },
          success: function (res) {
            widowAle(res.msg)
            if(res.code == 0) {
              setTimeout(function () {
                widowAle('即将返回')
                window.close()
              },1000)
            }
          }
        })
      })
    })
  </script>
  </body>
</html>
